import service from "../utils/request";
// 查看秒杀产品列表
 export function pro_seckilllist(payload = {} ){
    return service.get('/api/pro/seckilllist', {params:payload} );
}
// 推荐产品列表
export function pro_recommendlist(payload = {} ){
    return service.get('/api/pro/recommendlist', {params:payload} );
}
// 搜索商品
export function pro_search(payload = {}) {
    return service.get(`/api/pro/search`, { params: payload })
}

// 热门搜索
export function pro_hotword(payload = {} ){
    return service.get(' /api/pro/hotword', {params:payload} );
}
// 搜索记录
export function pro_hotlist(payload = {}) {
    return service.get('/api/pro/recommendlist', { params: payload })
}
// 商品详情页
export function pro_detail( proid:any ) {
    return service.get('/api/pro/detail/' + proid)
}

// 产品分类列表
export function pro_categorylist(payload = {}) {
    return service.get('/api/pro/categorylist', { params: payload })
}
// 产品分类下品牌列表
export function pro_categorybrandlist(payload = {}) {
    return service.get('/api/pro/categorybrandlist', { params: payload })
}
// 某分类下某品牌的产品列表
export function pro_categorybrandprolist(payload = {}) {
    return service.get('/api/pro/categorybrandprolist', { params: payload })
}